﻿using System;
using System.Data;
using System.Linq;
using ReflectionStudio.Core.Events;
namespace WPFExcelReport
{
    public partial class ITXEXRPT
    {

        private void YGRQCVV(DataSet db)
        {
            try
            {
                string filter = "GSFACH<2";
                DataRow[] rows = db.Tables["QORDER"].Select(filter);
                DataSet Set = new DataSet();
                DataTable tb;
                if (rows.Length > 0)
                {
                    tb = rows.CopyToDataTable();
                    tb.TableName = "ABFOLGE";
                    Set.Merge(tb);
                    YGRQCXS(Set);
                }
                filter = "GSFACH>1";
                rows = db.Tables["QORDER"].Select(filter);
                Set = new DataSet();

                if (rows.Length > 0)
                {
                    tb = rows.CopyToDataTable();
                    tb.TableName = "ABFOLGE";
                    Set.Merge(tb);
                    YGRQCBX(Set);
                }
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }

    }
}